package com.itheima.reggie.dto;

import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.DishFlavor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 黑马程序员
 * Dto = Data Transfer Object, 一般用于表现层封装来自前端的数据对象
 */
@Data
@ApiModel("菜品Dto")
public class DishDto extends Dish {
    @ApiModelProperty("菜品关联口味")
    private List<DishFlavor> flavors = new ArrayList<>();
    @ApiModelProperty("菜品分类名称")
    private String categoryName; //菜品分类名称
    private Integer copies;
}
